<?php
/**
 * My new Zend Framework project
 * 
 * @author  
 * @version 
 */

set_include_path('../library');

require_once 'Initializer.php';

set_include_path('.' . PATH_SEPARATOR . '../library' . PATH_SEPARATOR . Initializer::initPhpConfig()->dir->models . PATH_SEPARATOR . get_include_path());

if (Initializer::initPhpConfig()->debug) {
	ini_set('display_errors', 1);
} else {
	ini_set('display_errors', 0);
}

// Prepare the front controller. 
$frontController = Zend_Controller_Front::getInstance();

// Change to 'production' parameter under production environemtn
$frontController->registerPlugin(new Initializer('development'));

// Dispatch the request using the front controller.
$frontController->dispatch(); 
?>